#!/usr/bin/env python
#First fork example

import os, time

print "Before the for, my PID is ", os.getpid()

if os.fork():
    print "Hello from the parent, my PID is ", os.getpid()
else:
    print "Hello from the child. My PID is ", os.getpid()


time.sleep(1)

print "Hello from Both of us."


